package com.jkm.service;


import com.jkm.redis.KeyPrefix;

/**
 * 缓存操作服务
 *
 * @Auther: liyabin
 * @Date: 2018/6/14 14:03
 * @Description:
 */
public interface RedisService {

//    @TestAnno
    <T> T get(KeyPrefix prefix, String key, Class<T> bean);

    <T> boolean set(KeyPrefix prefix, String key, T value);

    boolean exists(KeyPrefix prefix, String key);

    boolean delete(KeyPrefix prefix, String key);

    Long incr(KeyPrefix prefix, String key);

    Long decr(KeyPrefix prefix, String key);
}
